package com.woniu.communitymanagement.service;

import com.woniu.communitymanagement.entity.HttpResult;
import com.woniu.communitymanagement.entity.Records;


public interface IRecordsService {
    /**
     * 获取全部列表,并且分页
     * @param type
     * @param houseNumber
     * @param pageIndex
     * @param pageSize
     * @return
     */
    HttpResult getList(Integer typeId, String houseNumber, Integer pageIndex, Integer pageSize);

    /**
     * 添加
     * @param records
     * @return
     */
    HttpResult addRecords(Records records);

    /**
     * 修改
     * @param records
     * @return
     */
    HttpResult updateRecords(Records records);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    HttpResult removeRecords(Integer id);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    HttpResult getInfo(Integer id);

}
